<div class="modal-header">
    <h4 class="modal-title">添加卡</h4>
</div>
<div class="col-xs-12" >
<div class="panel panel-default mt10">
<div class="panel-body">
<div class="form-group">
    <!-- <div class="row">
		<label class="col-md-offset-1 radio-inline" vertical-align="middle">
        <input type="radio" name="inlineRadioOptions" id="inlineRadio1" value="2" ng-model="cardinfo.type">单张</label>&nbsp;&nbsp;
		<input type="text" class="form-control" placeholder="卡号"
			ng-model="cardinfo.cardnum" style="width:200px">
    </div> -->
	<div class=" mt10 form-group">
		<label class="control-label col-md-1 mt5" style="width:70px">卡段:</label>
		<input type="text" class="form-control col-md-2" placeholder="起始卡号"
			ng-model="cardinfo.start_card_num" style="width:120px">
		&nbsp;&nbsp;<label class="col-md-1 mt5">到</label>&nbsp;&nbsp;
		<input type="text" class="form-control col-md-2" placeholder="结束卡号"
      ng-model="cardinfo.end_card_num" style="width:120px">
    <label class="control-label col-md-1 mt5" style="width:70px">数量:</label>
    <input type="number" class="form-control col-md-1" placeholder="数量"
    ng-model="cardinfo.count" style="width:100px">
	</div>

    <div class="col-sm-12 row mt10 text-center" style="width:570px">
        <table class="table table-bordered panel panel-default table-responsive">
	    <thead>
	      <tr>
	        <th class="col-md-3 text-center">起始卡号</th>
          <th class="col-md-3 text-center">结束卡号</th>
          <th class="col-md-3 text-center">操作时间</th>
	        <th class="col-md-3 text-center">状态</th>
	        
	      </tr>
	    </thead>
	    <tbody>
	     <tr ng-repeat = "cardinfo in cardinfos">
	       <td class="col-md-3 text-center">{{cardinfo.start_card_num}}</td>
         <td class="col-md-3 text-center">{{cardinfo.end_card_num}}</td>
         <td class="col-md-3 text-center">{{cardinfo.date}}</td>
         <td class="col-md-3 text-center" ng-if="cardinfo.status == '0'">未开始</td>
	       <td class="col-md-3 text-center" ng-if="cardinfo.status == '1'">添加中</td>
	       <td class="col-md-3 text-center" ng-if="cardinfo.status == '2'">已完成</td>
	     </tr>
	    </tbody>
	    </table>
	</div>
    <div class="text-right">

    <pagination 
      total-items="bigTotalItems" 
      ng-model="bigCurrentPage" 
      max-size="maxSize" 
      class="pagination-sm" 
      boundary-links="true" 
      ng-change="getunusedcard()"
      items-per-page="itemsPerPage"
      previous-text="上一页"
      next-text="下一页"
      first-text="首页"
      last-text="末页"
      rotate="false">
    </pagination>

  </div> 

</div>
</div>
</div>
</div> 
</div>
</div>




<div class="modal-footer">
    <button class="btn btn-primary" type="button" ng-click="ok()">添加卡</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
</div>






     
